﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Class_DAO;
using System.Data.SqlClient;

namespace Project_QuangCaoABC
{
    public partial class frmReportDSNhanVien : Form
    {
        public frmReportDSNhanVien()
        {
            InitializeComponent();
        }

        private void frmReportDSNhanVien_Load(object sender, EventArgs e)
        {
           
        
           
            string sql1 = "select * from NhanVien";
            string stconet = DataProvider.GetBaoCao();
           
            SqlDataAdapter da1 = new SqlDataAdapter(sql1, stconet);

            QuangCaoABCDataSet ds = new QuangCaoABCDataSet();

          
            da1.Fill(ds, "NhanVien");
            rpDSNV rpNV = new rpDSNV();
            rpNV.SetDataSource(ds);
            ReportViewer_DSNV.ReportSource = rpNV;

        
        }
    }
}
